package com.example.demo.app;

import java.util.Map;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.google.common.collect.Maps;

@RestController
public class ErrorController {

	@RequestMapping("/500")
	public Map<String,Object> error(){
		Map<String, Object> newHashMap = Maps.newHashMap();
		newHashMap.put("err", HttpStatus.INTERNAL_SERVER_ERROR);
		return newHashMap;
	}
}
